package com.yunxin.admin.system.application.assembler;

import com.yunxin.admin.system.application.dto.base.BasePageDTO;
import com.yunxin.admin.system.application.command.BasePageCommand;
import org.mapstruct.Mapper;

/**
 * 基本分页对象转换器
 *
 * @author zero°
 * @since 2023-05-22
 */
@Mapper(componentModel = "spring")
public interface BasePageAssembler {

    /**
     * request 转 DTO
     * @param command command
     * @return BasePageDTO
     */
    BasePageDTO formBasePageCommand(BasePageCommand command);
}
